import request from '@/utils/request'

export function warningAdd(data) {
    return request({
        url: '/warning/add',
        method: 'post',
        data: data
    })
}

export function warningUpdate(data) {
    return request({
        url: '/warning/update',
        method: 'post',
        data: data
    })
}

export function removeWarningById(id) {
    return request({
        url: '/warning/removeById?id=' + id,
        method: 'get'
    })
}

export function warningList() {
    return request({
        url: '/warning/list',
        method: 'get'
    })
}

export function queryWarningById(id) {
    return request({
        url: '/warning/queryById?id=' + id,
        method: 'get'
    })
}
